#include "Vector3.h"

class Camera
{
public:
	Vector3 u, v, n, pos;
	float viewingAngle;
	float screenRatio;
	float closeScreen;
	float farScreen;

	Camera()
	{
		u = Vector3(1,0,0);
		v = Vector3(0,1,0);
		n = Vector3(0,0,1);
		pos = Vector3(0,0,0);
	}

	void setCamera(Vector3 Pos, Vector3 U, Vector3 V, Vector3 N);
	void setView(float ViewingAngle, float ScreenRatio, float CloseScreen, float FarScreen);
	void applyView();

	void slide(float x, float y, float z);
	void pitch(float angle);
	void yaw(float angle);
	void roll(float angle);
	void setViewingAngle(float angle);
	void setScreenRatio(float angle);
	void rotate(Vector3 axis, float angle);
};